<!DOCTYPE html>
<html>
<head>
<title>${context.getContextName()}</title>
<meta charset="UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
${Styles.src(zhiqim.css)}
${Scripts.src(zhiqim.js)}
${Scripts.setContextPath(context)}
${Styles.src(zmr_theme.css)}
${Scripts.src(zmr_theme.js)}
${zhiqim_manager_console_log()}
<script>
//初始化
Z.onload(Zmr.containerMain);
Z.onload(Zmr.tabnavmain);
//窗口变动
Z(window).resize(Zmr.containerMain);
Z(window).resize(Zmr.tabnavmain);
</script>
</head>

<body>
${Htmls.toCallFrame()}
<!--顶部导航 -->
<div id="topnav" class="topnav">
    <div id="logo" class="logo z-pointer z-text-left ${zhiqim_manager_logo_px} ${sessionUser.getSidebarClass()}" onclick="Z.L.href('${context.getRootPath("/"+zhiqim_manager+"/main.htm")}');">${context.getAttribute("name")}</div>
    <div class="topnavleft">
        <div class="bar z-w60 z-text-center z-pointer" onclick="Zmr.sidebar();"><i class="z-font z-list z-px22"></i></div>
        ${zhiqim_manager_topnav_left_defined()}
    </div>
    <div class="topnavright">
        ${zhiqim_manager_topnav_right_defined()}
        <div class="nav z-w100 z-text-center z-pointer z-user-select-none" onclick="Z.L.reload();">刷新</div>
        <div class="nav z-w100 z-text-center z-pointer z-user-select-none" onclick="Z.L.confirm('${context.getRootPath("/"+zhiqim_manager+"/logout.htm")}', '确实要退出吗?');">退出系统</div>
    </div>
</div>

<!--容器开始 -->
<div id="container" class="container">

<!--侧边导航 -->
<div id="sidebar" class="sidebar ${sessionUser.getSidebarClass()}">
    <!--个人中心-->
    <div class="user-box">
        <div class="avatar-box z-text-center">
        <a href="${context.getRootPath("/"+zhiqim_manager+"/profile.htm")}" rel="nofollow">
        <img class="z-bd-rd50p z-w70 z-h70" src="${sessionUser.getAvatar50()}">
        </a>
        </div>
        <div class="z-pd-t20 z-text-center z-lh25 z-color-white">
             <span class="z-px13 z-bold">${sessionUser.getOperatorName()}</span><br>
        </div>
    </div>
    <!--栏目列表-->
<#var topMenuCode = sessionUser.getSelectedTopMenuCodeOrFirstMenuCode(request)/>
<#var childMenuCode = sessionUser.getSelectedSecondMenuCode(request)/>
<#var topMenu = sessionUser.getTopMenuFirst()/>
    <ul id="${topMenu.getMenuCode()}">
        <li onclick="Z.L.href('${context.getRootPath("/"+zhiqim_manager+"/main.htm")}');" <#if childMenuCode == null>class="active"</#if>><i class="z-font z-mg-r10 z-house"></i>首页</li>
    <#for childMenu : sessionUser.getChildMenuList(topMenu.getMenuCode())>
        <li onclick="Z.L.href('${context.getRootPath(childMenu.getMenuUrl())}');" <#if childMenu.getMenuCode() == childMenuCode>class="active"</#if>><i class="z-font z-mg-r10 ${childMenu.getMenuIcon()}"></i>#{childMenu.getMenuName()}</li>
    </#for>
    </ul>
</div>

<!--主体-->
<div id="mainbody" class="mainbody" style="margin-left:<#if sessionUser.hasSidebar()>201px<#else>0</#if>">
    <#include include/>
</div>

<!-- 容器结束  -->
</div>

<!--脚注-->
<div class="footer">
    <div class="footer-wrap">${zmr_copyright}</div>
</div>
</body>
</html>